package abc.ynny.dome04;

public class Fruit {
    private String name;
    private String area;
    private double price;

    public Fruit() {

    }
    public Fruit(String name, String area, double price) {
        this.name = name;
        this.area = area;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;

    }

    public String toString() {
        return "水果类{" + "水果名'" + name + '\'' + ", 场地'" + area + '\'' + ", 价格" + price + '}';

    }
}
